package com.ww.yaodao.exception;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

@ControllerAdvice
public class GobalExceptionHandlerException {
    @ResponseBody
    @ExceptionHandler(Exception.class)
    public String UserNull(Exception e){
        return  e.getMessage();
    }

}
